Blog Home
About
Archive
Repository
强化学习
中文
Demo
Video
Featured
What I did
日本語
音声処理
言語解析
English
Tensorflow
Cuda
Android
Electron
WebApp
C++
Node.js
Python
Gatsby
形態素解析。主に漢字を読み仮名に変換する際に用いる。
import MeCab mecab = MeCab.Tagger('-Oyomi') def MecabParse(txt): res = mecab.parse(txt) res = res.replace("\n","") return res MecabParse("「名前的になんとなくオチがわかる」")
If you like it, share it!